import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
//懒加载指令
import { lazyPlugin } from '@/directives'
// 全局组件
import { componentPlugin } from '@/components/index'
import App from './App.vue'
import router from './router'

const app = createApp(App)

// pinia持久化
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentPlugin)
app.mount('#app')
